package net.wicp.tams.component.constant;

public enum ResType {
	dir("目录"), url("地址"), dlg("对话框");
	private String desc;

	private ResType(String desc) {
		this.desc = desc;
	}

	public String getDesc() {
		return this.desc;
	}

	public static ResType get(String name) {
		for (ResType resType : ResType.values()) {
			if (resType.name().equalsIgnoreCase(name)) {
				return resType;
			}
		}
		return null;
	}
}
